# ====== 基础模块的批量导入 =============
# 导入render和HTTPResponse
from django.shortcuts import render, HttpResponse, redirect, reverse
# 导入JsonResponse
from django.http import JsonResponse, FileResponse
# 导入json
import json
# 导入OS
import os
# 导入随机数模块
import random
# 导入时间日期
from datetime import datetime, timedelta, date
# 导入settings
from django.conf import settings
# 导入Q查询
from django.db.models import Q, Sum, Max, Min, Count, Avg
# csrf校验
from django.views.decorators.csrf import csrf_exempt
# 导入正则
import re
# 导入数学运算
import math
# 导入获取时间的年份和月份
from django.db.models.functions import ExtractYear, ExtractMonth